package ro.imc.andrei.beans;

public class Professor extends Person {
	private String title;
	private String field;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	
	public String[] getFields(){
		String[] fields = new String[5];
		int i=0;
		
		fields[i++] = "firstName";
		fields[i++] = "lastName";
		fields[i++] = "cnp";
		fields[i++] = "title";
		fields[i++] = "field";
		
		return fields;
	}
	
	public String[] getValues(){
		String[] values = new String[5];
		int i = 0;
		
		values[i++] = this.getFirstName();
		values[i++] = this.getLastName();
		values[i++] = this.getCNP();
		values[i++] = this.getTitle();
		values[i++] = this.getField();
		
		return values;
	}
}
